<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>

<!DOCTYPE html>
<html>
	<head>
		<title>编辑支付记录</title>
		<meta name="decorator" content="default"/>
		<script type="text/javascript">
			$(function() {
				//初始化表单验证
				$("#inputForm").initValidform();
			});
		</script>
	</head>
	
	<body class="mainbody">
		<form:form id="inputForm" modelAttribute="transrecord" action="${ctx}/qd/transrecord/save" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<!--导航栏-->
			<div class="location">
				<a href="${ctx}/qd/transrecord/list" class="back"><i></i><span>返回列表页</span></a>
				<a href="${ctx}/center" class="home"><i></i><span>首页</span></a> 
				<i class="arrow"></i> 
				<a href="${ctx}/qd/transrecord/"><span>支付记录</span></a>
				<shiro:hasPermission name="qd:transrecord:edit"><i class="arrow"></i><span>${not empty transrecord.id ? '修改':'添加' }支付记录</span></shiro:hasPermission>
			</div>	
			<div class="line10"></div>
			<!--/导航栏-->
	
			<!--内容-->
			<div id="floatHead" class="content-tab-wrap">
				<div class="content-tab">
					<div class="content-tab-ul-wrap">
						<ul>
							<li><a class="selected" href="javascript:;">支付记录信息</a></li>
						</ul>
					</div>
				</div>
			</div>
	
			<div class="tab-content">
			 <div class="bDiv" style="height:300px;">
				<dl>
					<dt>收支类型</dt>
					<dd>
					<div class="rule-multi-radio">
						<form:radiobuttons path="inout"  items="${fns:getDictList('inout_type')}"  itemValue="value"  itemLabel="label" htmlEscape="false"  class="required" />
					</div>
					</dd>
				</dl>
				<dl>
					<dt>交易类型</dt>
					<dd>
					<div class="rule-multi-radio">
						<form:radiobuttons path="type"  items="${fns:getDictList('trans_type')}"  itemValue="value"  itemLabel="label" htmlEscape="false"  class="required" />
					</div>
					</dd>
				</dl>
				<dl>
					<dt>交易金额</dt>
					<dd>
						<form:input path="money" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="/[0-9]/" nullmsg="请输入交易金额" errormsg="请输入交易金额" sucmsg=" "/>
						<span class="Validform_checktip">*请输入交易金额</span>
					</dd>
				</dl>
				<dl>
					<dt>支付方式</dt>
					<dd>
					<div class="rule-multi-radio">
						<form:radiobuttons path="payType"  items="${fns:getDictList('trans_way')}"  itemValue="value"  itemLabel="label" htmlEscape="false"  class="required" />
					</div>
					</dd>
				</dl>
				<dl>
					<dt>支付单号</dt>
					<dd>
						<form:input path="payCode" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入支付单号" errormsg="请输入支付单号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入支付单号</span>
					</dd>
				</dl>
				<dl>
					<dt>发生日期</dt>
					<dd>
							<fmt:formatDate value="${transrecord.payDate}"  pattern="yyyy-MM-dd" var="payDate"/>
						<form:input path="payDate" value="${payDate }" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入发生日期" errormsg="请输入发生日期" sucmsg=" "/>
						<span class="Validform_checktip">*请输入发生日期</span>
					</dd>
				</dl>
				<dl>
					<dt>描述</dt>
					<dd>
						<form:input path="description" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入描述" errormsg="请输入描述" sucmsg=" "/>
						<span class="Validform_checktip">*请输入描述</span>
					</dd>
				</dl>
				<dl>
					<dt>会员编号</dt>
					<dd>
						<form:input path="memberId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入会员编号" errormsg="请输入会员编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入会员编号</span>
					</dd>
				</dl>
				<dl>
					<dt>状态</dt>
					<dd>
					<div class="rule-multi-radio">
						<form:radiobuttons path="invalid"  items="${fns:getDictList('yesno')}"  itemValue="value"  itemLabel="label" htmlEscape="false"  class="required" />
					</div>
					</dd>
				</dl>
				<dl>
					<dt>作废人</dt>
					<dd>
						<form:input path="invalidBy" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入作废人" errormsg="请输入作废人" sucmsg=" "/>
						<span class="Validform_checktip">*请输入作废人</span>
					</dd>
				</dl>
				<dl>
					<dt>作废时间</dt>
					<dd>
						<fmt:formatDate value="${transrecord.invalidDate}"  pattern="yyyy-MM-dd" var="invalidDate"/>
						<form:input path="invalidDate" value="${invalidDate }" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入作废日期" errormsg="请输入作废日期" sucmsg=" "/>
						<span class="Validform_checktip">*请输入作废时间</span>
					</dd>
				</dl>
				<dl>
					<dt>作废理由</dt>
					<dd>
						<form:input path="invalidReason" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入作废理由" errormsg="请输入作废理由" sucmsg=" "/>
						<span class="Validform_checktip">*请输入作废理由</span>
					</dd>
				</dl>
				<dl>
					<dt>学员编号</dt>
					<dd>
						<form:input path="studentId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入学员编号" errormsg="请输入学员编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入学员编号</span>
					</dd>
				</dl>
				<dl>
					<dt>预约课程编号</dt>
					<dd>
						<form:input path="courseorderId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入预约课程编号" errormsg="请输入预约课程编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入预约课程编号</span>
					</dd>
				</dl>
				<dl>
					<dt>合同编号</dt>
					<dd>
						<form:input path="contractId" htmlEscape="false" maxlength="50" class="required" cssClass="input normal" datatype="*" nullmsg="请输入合同编号" errormsg="请输入合同编号" sucmsg=" "/>
						<span class="Validform_checktip">*请输入合同编号</span>
					</dd>
				</dl>
				</div>
			</div>
			<!--/内容-->
	
			<!--工具栏-->
			<div class="page-footer">
				<div class="btn-wrap">
					<input type="submit" name="btnSubmit" value="提交保存" id="btnSubmit" class="btn" /> 
					<input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
				</div>
			</div>
			<!--/工具栏-->
		</form:form>
	</body>
</html>

